//
//  Greeting.m
//  C++OC
//
//  Created by chenyh on 2021/2/19.
//

#import "Greeting.h"

@implementation Greeting
-(id)init {
    if (self = [super init]) {
        hello = new Hello();
    }
    return self;
}
- (void)dealloc {
   
    delete hello;
    
}
- (void)sayGreeting {
    hello->say_hello();
}

- (void)sayGreeting:(Hello*)greeting {
    greeting->say_hello();
}
@end
